import { _decorator, Component, Node, v2, v3 } from 'cc';
const { ccclass, property } = _decorator;

@ccclass('PlayerRandomMove')
export class PlayerRandomMove extends Component {
    targetPos = v3(0, 0,0);
    spee:5;
    direction = v3(0, 0);
    start() {

    }

    update(deltaTime: number) {
        if(true) {
            this.node.position.lerp(this.targetPos, this.spee * deltaTime);
        }

    }
}


